export const COMPONENT_LOG = 'component_log'
export const DRAWING_LOG = 'drawing_log'
export const NODE_LOG = 'node_log'
export const REVIEW_PLANNING = 'review_planning'
/* const standardMap = {
  1: '√',
  2: '○',
  3: '-'
}
const formatterStandard = function(row, column, cellValue) {
  return standardMap[cellValue] || cellValue
}*/
export default {
  [COMPONENT_LOG]: {
    url: 'api/standardComponentLog', // api 地址
    title: '构件',
    columns: [
      { prop: 'createTime', label: '时间', width: '140', headerAlign: 'center' },
      { prop: 'operationType', label: '操作', width: '60' },
      { prop: 'categoryName', label: '构件类别', width: '100' },
      { prop: 'componentName', label: '构件名称', width: '120' },
      { prop: 'typeName', label: '标准', headerAlign: 'center', width: '100' },
      { prop: 'level', label: '等级', width: '80' },
      { prop: 'description', label: '说明', showOverflowTooltip: false, width: '160', headerAlign: 'center', align: 'left' },
      { prop: 'nickName', label: '操作人', width: '60' },
      { prop: 'remark', label: '备注' }
    ]
  },
  [DRAWING_LOG]: {
    url: 'api/standardDrawingLog', // api 地址
    title: '图纸',
    columns: [
      { prop: 'createTime', label: '时间', width: '140', headerAlign: 'center' },
      { prop: 'operationType', label: '操作', width: '80' },
      { prop: 'disciplineName', label: '专业大类', width: '120' },
      { prop: 'drawingName', label: '视图/模型/图纸类别', width: '200' },
      { prop: 'nickName', label: '操作人', width: '80' },
      { prop: 'remark', label: '备注' }
    ],
    showDateRange: true
  },
  [NODE_LOG]: {
    url: 'api/standardRelationLog', // api 地址
    title: '节点',
    columns: [
      { prop: 'createTime', label: '时间', width: '140', headerAlign: 'center' },
      { prop: 'operationType', label: '操作', width: '60' },
      { prop: 'nodeName', label: '节点', width: '60' },
      { prop: 'disciplineName', label: '专业', width: '100' },
      { prop: 'componentName', label: '构件/元素', width: '140' },
      { prop: 'drawingName', label: '视图/模型/图纸类别', width: '160' },
      { prop: 'relationInfo', label: '更新说明', width: '120', headerAlign: 'center' },
      { prop: 'nickName', label: '操作人', width: '60' },
      { prop: 'remark', label: '备注' }
    ],
    showDateRange: true
  },
  [REVIEW_PLANNING]: {
    url: 'api/inspectPlan/selectEmailLogList', // api 地址
    title: '邮件发送记录',
    columns: [
      { prop: 'sendTime', label: '发送时间', width: '180', headerAlign: 'center' },
      { prop: 'reviewMonth', label: '评审场次', width: '180' },
      { prop: 'type', label: '邮件类型', width: '180' },
      { prop: 'sendStatusDesc', label: '发送状态', width: '180' },
      { prop: 'remark', label: '备注' }
    ],
    showDateRange: true,
    hiddenExport: true
  },
}
